/**
 * Object工具类
 */
export class ObjectUtils {

    /**
     * Object转Map
     * @param obj Object对象
     * @returns 
     */
    static ObjToMap(obj: Object) {
        return new Map(Object.entries(obj));
    }

    /**
     * Object转Map
     * @param obj Object对象
     * @returns 
     */
    static ObjToStrMap(obj: Object) {
        let strMap = new Map();
        for (const k of Object.keys(obj)) {
            strMap.set(k, obj[k]);
        }
        return strMap;
    }
}